using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{


    public class BridgePipeLedgerMap : ClassMap<BridgePipeLedger>
    {

        public BridgePipeLedgerMap()
        {
            Table("Tbt_BridgePipeLedger");
            Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
            Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Pipeline>(x => x.Pl, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
            Map(x => x.ValveNull).Column("ValveNull").Not.Nullable();
            Map(x => x.Memo).Column("Memo");
            Map(x => x.OpertionEmp).Column("OpertionEmp").Not.Nullable();
            Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
